home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SunSoft Catalyst CDWARE 1996 May to August
/
Catalyst CDWARE 1996 May to August.iso
/
.products
/
JavaWorld
/
javaworld
/
cgi-bin
/
jw-submit.cgi
< prev
next >
Wrap
Text File
|
1996-03-08
|
1KB
|
59 lines
#!/bin/sh
# jw-submit.cgi - script to handle miscellaneous survey forms for JavaWorld
mail=/usr/ucb/Mail
address=jw-submit@javaworld.com
if [ $# -ge 1 ]; then
subject="$*"
else
subject="jw-submit"
fi
cat <<END_OF_MESSAGE
Content-TYPE: text/html
<HTML>
<HEAD><TITLE>JavaWorld</TITLE></HEAD>
<BODY>
<A HREF="/javaworld/index.html">
<IMG border=0 SRC="/javaworld/icons/b-thismonth.gif" ALT="[Table of contents]"></A>
<P>
<CENTER><H3>Thank you for participating in <EM>JavaWorld</EM>. We appreciate your patronage.</H3></CENTER>
</BODY>
</HTML>
END_OF_MESSAGE
(
echo "BEGIN RECORD `date`"
echo "SUBMISSION: $*"
echo "The environment variables are:"
echo "CONTENT_LENGTH=$CONTENT_LENGTH"
echo "CONTENT_TYPE=$CONTENT_TYPE"
echo "DOCUMENT_ROOT=$DOCUMENT_ROOT"
echo "GATEWAY_INTERFACE=$GATEWAY_INTERFACE"
echo "HTTP_REFERER=$HTTP_REFERER"
echo "HTTP_USER_AGENT=$HTTP_USER_AGENT"
echo "QUERY_STRING=$QUERY_STRING"
echo "REMOTE_ADDR=$REMOTE_ADDR"
echo "REMOTE_HOST=$REMOTE_HOST"
echo "REQUEST_METHOD=$REQUEST_METHOD"
echo "SCRIPT_NAME=$SCRIPT_NAME"
echo "SERVER_NAME=$SERVER_NAME"
echo "SERVER_PORT=$SERVER_PORT"
echo "SERVER_PROTOCOL=$SERVER_PROTOCOL"
echo "SERVER_SOFTWARE=$SERVER_SOFTWARE"
echo "ARGV=$*"
if [ -n "$CONTENT_LENGTH" ]; then
read var
fi
echo "STDINDATA=${var}"
echo "END RECORD `date`"
echo
) 2>&1 | $mail -s "$subject" $address
exit 0